-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix distutils deprecation for Python 3.12 #141
Fix distutils deprecation for Python 3.12 #141
Conversation
ec56024
to
3e61eb4
Compare
Waiting on epics-base/setuptools_dso#31 |
When building this and running tests with local copies of
The seems to occur no matter the Python version (at least >=3.8) . |
I recall errors like this when accidentally running |
Looking again at this PR. Is it necessary to replace all of the quotes? I am not opposed to code "beautification", but would much prefer these changes be separated. At least in separate commits, preferably separate PRs. |
Following the Python Build commands listed in python setup.py sdist --formats=gztar and python -m pip wheel -v -w dist --no-index --no-deps \
--no-build-isolation --no-use-pep517 \
--build-option --plat-name=${{ matrix.piparch }} \
$PRE \
dist/*.tar.*
cd dist
python -m pip install p4p*.whl
python -m ci_core_dumper exec python -m nose2 -v p4p or anything similar are not mentioned in the docs for "Building" at all. It might be worth adding these so that anyone else trying to build from source doesn't get confused if these errors show when trying to run the unittests. Unless of course I missed an obvious step in the guide... |
Oh whoops, that must have been my vscode auto-formatter and I didn't realise... I can change them back |
25cb7cc
to
e02f851
Compare
Forgive me for belaboring this point. Did switching to a different directory avoid this failure?
These docs do not cover building wheels from a manually created git checkout. Only the |
f54d8b7
to
443bdb5
Compare
That comes from the build system not |
7a717b8
to
23f0ac8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fundamental changes look good to me, but there's probably some autoformat stuff that should be removed from this PR.
It should be highlighted that, due to the MacOS change from Intel to Arm64 runners, all cothread-dependant tests can no longer be run there (due to this cothread bug).
45c5661
to
bdca08b
Compare
@mdavidsaver are you happy with these changes? |
bdca08b
to
f9d6734
Compare
Minor formatting changes Add PyArrayObject cast to some lines
Add Python 3.5 build fix for TLS deprecation Bump setup-python version to v5 Fix MacOS builds (now arm64) Remove SETUPTOOLS_USE_DISTUTILS export as deprecated in Python 3.12
f9d6734
to
677306e
Compare
This PR aims to make changes that will allow for use in Python 3.12 programs.
As well as fixes to the code for p4p itself, this PR includes: